#ifndef DEF_LINE
#define DEF_LINE


#include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#include <string>

using namespace std;

class Line
{
public:
	Line();
	Line(string label);
	Line(int x , int y ,string lab);
	~Line();
	void afficher(SDL_Event event,SDL_Surface *ecran);
	void evenement(SDL_Event event);

	// accesseur
	const char* getCharTexte();
	string getStringTexte();
	int getHeight();
	int getWidth();

	void setMax(unsigned int max);
	void setXY(int x , int y );
	void setTexte(string txt);

	void setFocus(bool focus);
private:
	int tailleLabel;
	unsigned int curseurPosition;
	int largeur ;
	int longeur;
	unsigned int max;
	int nbCarTrop;
	int nbCarTropFin;
	bool boutonGauche;
	bool boutonDroit;
	bool asFocus;
	bool boutDroitSourie;
	int cliniote;
	int height;
	int width;
	int positionSourie;
	string texte;
	SDL_Surface *rectangle;
	SDL_Surface *fond;
	SDL_Surface *tire ;
	SDL_Surface *labelA;
	SDL_Rect position;
	SDL_Rect positionFond;
	SDL_Color couleur;
	/****************************************
	******POUR LE TEXTE*********************
	****************************************/
	TTF_Font *police;
	SDL_Surface *surface_texte;
	string texteAafficher;
	int size;
	string policeNom;

	string label;
};

#endif
